﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="News.aspx.cs" Inherits="EXAM.News"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <style type="text/css">
        #newscontent
        {
            float: left;
            width: 650px;
            text-align: justify;
        }
        #newleft
        {
            float: left;
            width: 300px;
        }
        #newleft art-blockcontent-body a:link
        {
            float: left;
            width: 300px;
            text-decoration: none;
        }
        .newsimg
        {
            float: left;
            margin: 5px;
        }
        .newsimg
        {
            width: 80px;
        }
        .newstitle
        {
            float: left;
            width: 163px;
            color: #8A0000;
            font-weight: bold;
        }
        .newsdesc
        {
        	text-align: justify;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div id="newscontent">
        <asp:Literal ID="lbContent" runat="server" Mode="PassThrough"></asp:Literal>
    </div>
    <div id="newleft">
        <div class="art-block">
            <div class="art-block-tl">
            </div>
            <div class="art-block-tr">
            </div>
            <div class="art-block-bl">
            </div>
            <div class="art-block-br">
            </div>
            <div class="art-block-tc">
            </div>
            <div class="art-block-bc">
            </div>
            <div class="art-block-cl">
            </div>
            <div class="art-block-cr">
            </div>
            <div class="art-block-cc">
            </div>
            <div class="art-block-body">
                <div class="art-blockheader">
                    <div class="l">
                    </div>
                    <div class="r">
                    </div>
                    <h3 class="t">
                        Top News</h3>
                </div>
                <div class="art-blockcontent">
                    <div class="art-blockcontent-body">
                        <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Height="450px">
                            <asp:DataList ID="dgvNews" runat="server">
                                <ItemTemplate>
                                    <div class="newsitem">
                                        <div class="newsimg">
                                            <a href="News.aspx?newsID=<%#Eval("ID") %>" style="text-decoration: none">
                                                <img alt="" src="Upload/<%#Eval("Image") %>" width="80px" /></a>
                                        </div>
                                        <div class="newstitle">
                                            <a href="News.aspx?newsID=<%#Eval("ID") %>" style="text-decoration: none">
                                                <%#Eval("Title") %></a></div>
                                        <div class="newsdesc">
                                            <%#Eval("ShortDecribes") %></div>
                                    </div>
                                    <br />
                                </ItemTemplate>
                            </asp:DataList>
                        </asp:Panel>
                        <div class="cleared">
                        </div>
                    </div>
                </div>
                <div class="cleared">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
